<!DOCTYPE html>
<html lang="en">
<head>
    <title>无线路由管理平台</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="css/unicorn.main.css" />
    <link rel="stylesheet" href="css/unicorn.grey.css" class="skin-color" />

    <link rel="stylesheet" href="/css/theme1/jquery-ui-1.10.4.custom.css" />
    <link rel="stylesheet" href="/css/ui.jqgrid.css" />
    <link rel="stylesheet" href="/css/jquery.qtip.min.css" />
    <link href="css/font-awesome.min.css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>

<%include inc.html%>

<div id="content">

    <div id="breadcrumb">
        <a href="index.html" title="返回控制台" class="tip-bottom"><i class="icon-home"></i> 无线路由管理平台</a>
        <a href="#" class="current">个人设置</a>


    </div>
    <div class="container-fluid">


        <div class="row-fluid">
            <div class="span12">
                <div style="margin: 0 auto;"  class="alert alert-block alert-<%if(typeof(retdata.success)!="undefined" && retdata.success==false){%>error<%}else{%>info<%}%>" id="info">
                    <i class="  icon-cog"></i>
                    <%=retdata.info %>
                    <a href="#" data-dismiss="alert" class="close">×</a>
                </div>
            </div>
        </div>

        <%if(retdata.success==true){%>
        <div class="row-fluid">
        <div class="span12">
            <div class="widget-box">
                <div class="widget-title">
                        <span class="icon">
                            <i class="icon-align-justify"></i>
                        </span>
                    <h5>个人设置</h5>
                    <span class="label label-important"></span>
                </div>
                <div class="widget-content nopadding">
                    <form class="form-horizontal" method="post" name="modifypwd" id="modifypwd" novalidate="novalidate" />

                    <div class="control-group">
                        <label class="control-label">账号</label>
                        <div class="controls">
                            <strong class=" green">
                            <%if(typeof(viruser.username)!=="undefined" &&viruser.username!==null ){%><%=viruser.username%><%}%>
                            </strong>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">账号类型</label>
                        <div class="controls ">
                            <a href="#">

                                <strong class=" green" id="a1" data-hasqtip="title">
                                <%if(typeof(retdata.roleinfo.rolename)!=="undefined" &&retdata.roleinfo.rolenamee!==null ){%><%=retdata.roleinfo.rolename%><%}%>

                                    <i class="fa fa-external-link"></i></strong>
                                &nbsp;&nbsp;点击名称显示详细信息
                                <div class="tooltiptext" style="display: none">
                                    权限分级名称：<%=retdata.roleinfo.rolename%>
                                    <BR><BR>可配置下属商户数：<%if(retdata.roleinfo.usernumber==-1){%>无限制<%}else{%><%=retdata.roleinfo.usernumber%>个<%}%>
                                    <BR><BR>可配置wifi数：<%if(retdata.roleinfo.wifinumber==-1){%>无限制<%}else{%><%=retdata.roleinfo.wifinumber%>个<%}%>
                                    <BR><BR>可配置ap数：<%if(retdata.roleinfo.apnumber==-1){%>无限制<%}else{%><%=retdata.roleinfo.apnumber%>个<%}%>
                                    <BR><BR>可配置认证权限：<%-retdata.roleinfo.authnumber%>
                                    <BR><BR>可配置广告数：<%if(retdata.roleinfo.adnumber==-1){%>无限制<%}else{%><%=retdata.roleinfo.adnumber%>个<%}%>
                                    <BR><BR>统计权限：<%-retdata.roleinfo.statnumber%>
                                    <BR><BR>收费标准：<%=retdata.roleinfo.fee%>元
                                </div>
                            </a>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">注册日期</label>
                        <div class="controls">
                            <strong class="green ">
                            <%if(typeof(viruser.regdate)!=="undefined" &&viruser.regdate!==null ){%><%=viruser.regdate%><%}%>
                            </strong>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">失效日期</label>
                        <div class="controls">
                            <strong class=" green">
                            <%if(typeof(viruser.expiredate)!=="undefined" &&viruser.expiredate!==null ){%><%=viruser.expiredate%><%}%>
                            </strong>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">昵称/姓名</label>
                        <div class="controls">
                            <input type="text" name="nickname" id="nickname"
                                   value="<%if(typeof(viruser.nickname)!=="undefined" && viruser.nickname!==null){%><%=viruser.nickname%><%}%>"/>
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">原密码</label>
                        <div class="controls">
                            <input type="password"  name="oldpwd" id="oldpwd" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">新密码</label>
                        <div class="controls">
                            <input type="password" name="newpwd" id="newpwd" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">重复新密码</label>
                        <div class="controls">
                            <input type="password"  name="newpwd1" id="newpwd1" />
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">手机号码</label>
                        <div class="controls">
                            <input type="text" name="phonenumber" id="phonenumber"
                                   value="<%if(typeof(viruser.phonenumber)!=="undefined" && viruser.phonenumber!==null){%><%=viruser.phonenumber%><%}%>"/>
                            请填写您的真实手机号码用于接收系统短信。
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">商户/代理商名</label>
                        <div class="controls">
                            <input type="text" name="companyname" id="companyname"
                                   value="<%if(typeof(viruser.companyname)!=="undefined" && viruser.companyname!==null){%><%=viruser.companyname%><%}%>"/>
                            请填写您的真实商户或代理商名称
                        </div>
                    </div>

                    <div class="control-group">
                        <label class="control-label">EMAIL</label>
                        <div class="controls">
                            <input type="text" name="email" id="email"
                                   value="<%if(typeof(viruser.email)!=="undefined" && viruser.email!==null){%><%=viruser.email%><%}%>"/>
                            请填写您的真实邮箱，用于接收系统邮件及找回密码。
                        </div>
                    </div>
                    <div class="form-actions">
                        <input type="submit" value="修改个人信息" class="btn btn-danger" />
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
        <%}else{%>
        <script language="JavaScript">
            setTimeout("window.location.href='login.html'",3000);
        </script>


        <%}%>
    </div>
    <div class="row-fluid">
        <div id="footer" class="span12">
            2014 &copy; 无线广告路由云管理平台
        </div>
    </div>
</div>

<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>

<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<script src="js/jquery.validate.js"></script>
<script src="js/unicorn.js"></script>
<script type='text/javascript' src='js/bootbox.min.js' charset='utf-8'></script>
<script src="js/jquery.qtip.min.js"></script>
<script src="js/unicorn.modifypwd.js"></script>
</body>
</html>
